# == Schema Information
#
# Table name: radusergroup
#
#  id        :integer          not null, primary key
#  username  :string(64)       default(""), not null
#  groupname :string(64)       default(""), not null
#  priority  :integer          default(1), not null
#

class Radusergroup < ActiveRecord::Base
	self.table_name = "radusergroup"
  validates_uniqueness_of :username, :scope => :groupname

  belongs_to :user, :foreign_key => :username, :primary_key => :username
  belongs_to :group, :foreign_key => :groupname, :primary_key => :name
end
